<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
	<div region="center" style="padding: 0px; border: 0px">
		<t:datagrid name="quickEntryList" checkbox="true" fitColumns="false" title="快速入口" actionUrl="quickEntryController.do?datagrid" idField="id"
			fit="true" queryMode="group">
			<t:dgCol title="主键" field="id" hidden="true" queryMode="single" width="120"></t:dgCol>
			
			<t:dgCol title="更新人名称" field="updateName" hidden="true" queryMode="single" width="120"></t:dgCol>
			<t:dgCol title="更新日期" field="updateDate" formatter="yyyy-MM-dd" hidden="true" queryMode="single" width="120"></t:dgCol>
			<t:dgCol title="网址名" field="urlName" query="true" queryMode="single" width="120"></t:dgCol>
			<t:dgCol title="网址" field="urlAddress" queryMode="single" width="120"></t:dgCol>
			<t:dgCol title="创建日期" field="createDate" formatter="yyyy-MM-dd" queryMode="single" width="120"></t:dgCol>
			<t:dgCol title="类型" field="type" queryMode="single" width="120"></t:dgCol>
			<t:dgCol title="排序" field="sort" queryMode="single" width="120"></t:dgCol>
			<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
			
			<t:dgDelOpt title="删除" url="quickEntryController.do?doDel&id={id}" />
			<t:dgToolBar title="录入" icon="icon-add" url="quickEntryController.do?goAdd" funname="add"></t:dgToolBar>
			<t:dgToolBar title="编辑" icon="icon-edit" url="quickEntryController.do?goUpdate" funname="update"></t:dgToolBar>
			<t:dgToolBar title="批量删除" icon="icon-remove" url="quickEntryController.do?doBatchDel" funname="deleteALLSelect"></t:dgToolBar>
			<t:dgToolBar title="查看" icon="icon-search" url="quickEntryController.do?goUpdate" funname="detail"></t:dgToolBar>
		</t:datagrid>
	</div>
</div>
<script src="webpage/com/buss/quickentry/quickEntryList.js"></script>
<script type="text/javascript">
 $(document).ready(function(){
 		//给时间控件加上样式
 			$("#quickEntryListtb").find("input[name='createDate']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 			$("#quickEntryListtb").find("input[name='updateDate']").attr("class","Wdate").attr("style","height:20px;width:90px;").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
 });
 
//导入
function ImportXls() {
	openuploadwin('Excel导入', 'quickEntryController.do?upload', "quickEntryList");
}

//导出
function ExportXls() {
	JeecgExcelExport("quickEntryController.do?exportXls","quickEntryList");
}

//模板下载
function ExportXlsByT() {
	JeecgExcelExport("quickEntryController.do?exportXlsByT","quickEntryList");
}
 </script>